package cn.sciento.farm.devicemanager.api.jsonrpc;

import cn.sciento.farm.devicemanager.dao.model.ResponseMessage;
import com.googlecode.jsonrpc4j.JsonRpcMethod;
import com.googlecode.jsonrpc4j.JsonRpcService;

/**
 * @author walton
 * @description
 * @date 2020/11/24 9:14
 */
@JsonRpcService(value = "rpc/hardware.sms")
public interface SmsJsonApi {

    /**
     * 手动添加可发送短信剩余条数
     * @param smsResidual
     * @return
     */
    @JsonRpcMethod("create_sms_residual")
    public ResponseMessage createSmsResidual(Integer smsResidual);

    /**
     * 查询充值记录
     * @return
     */
    @JsonRpcMethod("get_pay_log")
    public ResponseMessage getPayLog();

    /**
     * 查询可发送短信剩余条数
     * @return
     */
    @JsonRpcMethod("get_sms_residual")
    public ResponseMessage getSmsResidual();

    /**
     * 修改可发送短信剩余条数
     * @param smsResidual
     * @return
     */
    @JsonRpcMethod("update_sms_residual")
    public ResponseMessage updateSmsResidual(Integer smsResidual);

    /**
     * 短信发送结果查询
     * @param sendTime 0 获取所有
     * @return
     */
    @JsonRpcMethod("get_sms_send_result")
    public ResponseMessage getAlarmLogSendResult(Long sendTime, Integer areaId, Integer landId);

}
